package br.com.medvagas.comum.entidade;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


/**
 * The persistent class for the beneficio database table.
 * 
 */
@Entity
@Table(name="beneficio")
public class Beneficio implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="id_beneficio")
	private Integer idBeneficio;

	@Column(name="codigo_beneficio")
	private String codigoBeneficio;

	@Column(name="ds_outro")
	private String dsOutro;
	
	//bi-directional many-to-one association to Vaga
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="id_vaga")
	private Vaga vaga;

    public Beneficio() {
    }

	public Beneficio(String codigoBeneficio) {
		super();
		this.codigoBeneficio = codigoBeneficio;
	}

	public Integer getIdBeneficio() {
		return this.idBeneficio;
	}

	public void setIdBeneficio(Integer idBeneficio) {
		this.idBeneficio = idBeneficio;
	}

	public String getDsOutro() {
		return this.dsOutro;
	}

	public void setDsOutro(String dsBeneficio) {
		this.dsOutro = dsBeneficio;
	}

	public String getCodigoBeneficio() {
		return codigoBeneficio;
	}

	public void setCodigoBeneficio(String codigoBeneficio) {
		this.codigoBeneficio = codigoBeneficio;
	}

	public Vaga getVaga() {
		return vaga;
	}

	public void setVaga(Vaga vaga) {
		this.vaga = vaga;
	}

}